home *** CD-ROM | disk | FTP | other *** search
- #include "bbs.h"
-
- void MyError(int flag)
- {
- switch(flag) {
- case 0: /* MemoryError */
- sprintf(WORKB,"Could not allocate enough memory for workspace");
- break;
- case 1: /* MemError */
- sprintf(WORKB,"Tell %s there is a memory problem.",Cmds->SysopName);
- break;
- case 2: /* MSGBerr */
- sprintf(WORKB,"Msg Base ERROR!! Please notify %s",Cmds->SysopName);
- break;
- case 3: /* Nomem */
- sprintf(WORKB,"No Mem Error: Not enough memory to finish operation");
- break;
- case 4: /* FileListError */
- sprintf(WORKB,"There is a problem with File listings, please tell %s",Cmds->SysopName);
- break;
- case 5: /* sorry */
- AEPutStr("No files available in this conference.\r\n\r\n"); return;
- case 6: /* Examine error */
- sprintf(WORKB,"Tell %s there is a File Examine Error",Cmds->SysopName); break;
- case 7:
- sprintf(WORKB,"Tell %s the system can't open a file in the work dirs",Cmds->SysopName);
- break;
- case 8: /* lock error */
- sprintf(WORKB,"Tell %s the system has a Lock Error",Cmds->SysopName); break;
- case 9: /* Free Space error */
- sprintf(WORKB,"Not enough free space on Device for uploading."); break;
- case 10:
- sprintf(WORKB,"\r\nYou may not include any special symbols\r\n"); return;
- case 11:
- sprintf(WORKB,"Out of chipmem for FileInfoBlock"); break;
- case 12:
- AEPutStr("\r\nNo bulletins are available in this conference!\r\n\r\n"); return;
- }
-
- AEPutStr("\r\n");
- AEPutStr(WORKB);
- AEPutStr("\r\n\r\n");
-
- strcat(WORKB,"\n");
- ErrorLog(WORKB);
-
- }
-